package com.company.corelib.facade;

import java.util.List;

import com.company.corelib.dao.ArticleDAO;
import com.company.corelib.model.Article;

public class ArticleFacade {
	ArticleDAO dao = new ArticleDAO();
	public List<Article> getAllArticleByCategoryId(String categoryId) {
		return dao.getAllArticleByCategoryId(categoryId);
	}
	public String create(Article article) {
		return dao.create(article);
	}
	public String update(Article article) {
		return dao.update(article);
	}
	public String delete(String id) {
		return dao.delete(id);
	}
	public Article getArticleById(String id) {
		return dao.getArticleById(id);
	}
	public List<Article> getAllArticle() {
		return dao.getAllArticle();
	}
}
